﻿<%@ Control Language="C#" AutoEventWireup="true" EnableTheming="true" CodeBehind="PagingGridView.ascx.cs"
    Inherits="ExpertMIS.Admin.UserControl.PagingGridView" EnableViewState="true" %>
   
   <style type="text/css">
    .start{}
    .total{}
    .prePage{}
    .nextPage{}
    .Delete{}
   </style>
   
   <asp:HiddenField runat="server" ID="hfStart"/>
   <asp:HiddenField runat="server" ID="hfTotal"/>
<asp:GridView ID="gvList" runat="server" CellPadding="4" ForeColor="#333333" 
    GridLines="None" Width="100%" OnSelectedIndexChanged="gvList_SelectedIndexChanged"
    AllowSorting="True" OnSorted="gvList_Sorted" OnRowDataBound="gvList_RowDataBound" 
    EnableViewState="False" CaptionAlign="Left">
    <RowStyle BackColor="#EFF3FB" Width="100px" Font-Names="宋体" Font-Size="9pt" />
    <Columns>
        <asp:TemplateField ShowHeader="False">
            <ItemTemplate>
                <asp:ImageButton ID="ibEdit" runat="server" CausesValidation="False" CommandName="edit"
                    ImageUrl="~/imgs/edit.gif" AlternateText="编辑" Style="float: left"></asp:ImageButton>
                     <asp:LinkButton ID="lbEdit" runat="server">编辑</asp:LinkButton>
                <asp:ImageButton ID="ibDelete" runat="server" CausesValidation="False" CommandName="delete"
                    ImageUrl="~/imgs/delete.gif" AlternateText="删除" CssClass="Delete" Style="float: left"></asp:ImageButton>
                    <asp:LinkButton ID="lbDelete" CssClass="Delete" runat="server">删除</asp:LinkButton>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" Font-Names="宋体"
        Font-Size="10pt" />
    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" Font-Names="宋体"
        Font-Size="12px" />
    <EditRowStyle BackColor="#2461BF" />
    <AlternatingRowStyle BackColor="White" />
    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
    <EmptyDataTemplate>
        <span style="color: Red;">
            查询无数据</span>
    </EmptyDataTemplate>
</asp:GridView>
<div style="text-align: right; padding-right: 12px; font-size: 9pt;">
    【第<asp:Label ID="lbCurPageCount" runat="server"/>页】/【共<asp:Label ID="lbTotalPageCount" runat="server"/>页】&nbsp;
    <asp:LinkButton runat="server" Text="【上一页】" CssClass="prePage" ID="lbPage" onclick="lbPrior_Click"></asp:LinkButton>|
    <asp:LinkButton runat="server" Text="【下一页】" ID="lbNext" CssClass="nextPage" onclick="lbNext_Click"></asp:LinkButton>
</div>
